package com.zc.service;

import com.zc.entity.User;
import com.zc.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Autowired
    UserMapper userMapper;
    public User userLogin(String username)
    {
       return userMapper.selectByUsername(username);

    }
}
